<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var c;
        for (var num = 1; num <= 9; num += 1) {
            for (var a = 1; a <= num; a += 1) {
                c = a * num;
                document.write(a + "*" + num + "=" + c + "&nbsp;&nbsp;&nbsp;&nbsp;");
            }
            document.write("<br>")
        }
    </script>
</body>

</html>